package com.augmentum.oes.dao.impl;

import javax.annotation.Resource;

import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import com.augmentum.oes.dao.BaseDao;

@Repository
public abstract class BaseDaoImpl extends SqlSessionDaoSupport implements BaseDao{

    protected SqlSession sqlSession;

    @Override
    @Resource
    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory){
        super.setSqlSessionFactory(sqlSessionFactory);
    }

    @Override
    @Resource
    public void setSqlssion(SqlSession sqlssion) {
        this.sqlSession = getSqlSession();
    }

}
